<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Site extends MY_Controller {
	
    public function __construct(){
        parent::__construct();
    }

    public function index(){
        $this->smarty->display('site/index');
	}
	
    public function decoration(){
	}
	
    public function seo(){
	}
	
    public function add(){
        
	}
	
	public function grid(){
	    $t = array();
	    for ($i=0;$i<100;$i++){
    	   $arr = array();
	       $arr['itemid'] = 'itemid'.$i;     
	       $arr['productid'] = 'itemid'.$i;     
	       $arr['listprice'] = 'itemid'.$i;     
	       $arr['unitcost'] = 'itemid'.$i;     
	       $arr['attr1'] = 'itemid'.$i;     
	       $arr['status'] = 'itemid'.$i;     
	       
	       $t[] = $arr;
	    }
	    
	    echo json_encode($t);
	    exit;
	}
}

